package cn.vihub.config;

import io.minio.MinioClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 秋晚
 * @Date: 2025/7/25 10:59
 * @Description:
 **/
@Configuration
@RefreshScope
public class MinioConfig {

    @Value("${minio.host}")
    private String host;

    @Bean
    public MinioClient minioClient(){
        return MinioClient.builder().endpoint("http://127.0.0.1:9000").build();
    }
}
